package net.fdukedom.epicurus.client;

/**
 * Console offline client implementation
 * @author Alexander Kirakozov
 */
public class ConsoleClient {
    public static void main(String[] args) {
        /*ProfileServiceWrapper client = new ProfileServiceWrapper();
        
        AppInitializer.init();
        if ( client.connect() )
        {
            System.out.println("Connected successful!");
        } else 
        {
            System.out.println("Connection was failed!");
        }*/
    }

    /*public static EpicurusWSInterfacePort GetServicePort() {
        try {
            String serviceURL = serverURL + serviceName + wsdlPostfix;
            QName serviceQName = new QName(serviceURL, serviceName);
            URL wsdlLocation = new URL(serviceURL);
            ServiceFactory factory = ServiceFactory.newInstance();
            Service service = factory.createService(wsdlLocation, serviceQName);
                              
            QName portQName = new QName(portURL, portName);
            EpicurusWSInterfacePort port = (EpicurusWSInterfacePort) service
                    .getPort(portQName, EpicurusWSInterfacePort.class);

            return port;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }*/
    
    /*public static EpicurusWSInterfacePort GetSecurityServicePort() {
        try {
            String serviceURL = serverURL + serviceName + wsdlPostfix;
            QName serviceQName = new QName(serviceURL, serviceName);
            URL wsdlLocation = new URL(serviceURL);
            ServiceFactoryImpl factory = new ServiceFactoryImpl();
            Service service = factory.createService(wsdlLocation, serviceQName);
                              
            QName portQName = new QName(portURL, portName);
            EpicurusWSInterfacePort port = (EpicurusWSInterfacePort) service
                    .getPort(portQName, EpicurusWSInterfacePort.class);

            return port;
        } catch (Exception e) {
            e.printStackTrace();
        }
       */
}
